package com.ming.elm.dao;

import java.util.List;

import com.ming.elm.po.Orders;
import org.apache.ibatis.annotations.Select;

public interface OrdersDao {

	public int saveOrders(Orders orders) throws Exception;
	public Orders getOrdersById(Integer orderId) throws Exception;

	@Select("select * from orders where userId = #{userId}")
	public List<Orders> listOrdersByUserId(String userId) throws Exception;
}
